﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ServiceComparer
{
    [Serializable]
    public class ServiceItem
    {
        private string displayName;
        private string name;
        private string desc;
        private string status;
        private string type;
        private string login;
        private string path;
        /// <summary>
        /// 比较状态 0：普通 1：多了的 2：少了的
        /// </summary>
        private int compare;

        public ServiceItem()
        {
            this.compare = 0;
        }

        public ServiceItem(string displayName, string name, string desc, string status, string type, string login, string path)
        {
            this.displayName = displayName;
            this.name = name;
            this.desc = desc;
            this.status = status;
            this.type = type;
            this.login = login;
            this.path = path;
            this.compare = 0;
        }

        public ServiceItem Clone()
        {
            return new ServiceItem(DisplayName, Name, Desc, Status, Type, Login, Path);
        }

        public string Name { get => name; set => name = value; }
        public string Desc { get => desc; set => desc = value; }
        public string Status { get => status; set => status = value; }
        public string Type { get => type; set => type = value; }
        public string Login { get => login; set => login = value; }
        public string Path { get => path; set => path = value; }
        public string DisplayName { get => displayName; set => displayName = value; }
        public int Compare { get => compare; set => compare = value; }
    }
}
